import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listHospital(query) {
  return request({
    url: '/system/hospital/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getHospital(id) {
  return request({
    url: '/system/hospital/' + id,
    method: 'get'
  })
}


// 修改【请填写功能名称】
export function updateHospital(data) {
  return request({
    url: '/system/hospital',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delHospital(id) {
  return request({
    url: '/system/hospital/' + id,
    method: 'delete'
  })
}
// 新增【请填写功能名称】
export function addtupian(data) {
  return request({
    url: '/business/jkkepu/commonFileUpload',
    method: 'post',
    data: data
  })
}
// 新增【请填写功能名称】
export function zidian(data) {
  return request({
    url: '/business/jkkepu/getDictListByType',
    method: 'get',
    params: data
  })
}
// 查询【请填写功能名称】列表
export function yifabu(query) {
  return request({
    url: '/business/jkkepu/getPersonOnlineArticleList',
    method: 'get',
    params: query
  })
}
// 新增【请填写功能名称】
export function addwenzhang(data) {
  return request({
    url: '/business/jkkepu/addKpArticle',
    method: 'post',
    data: data
  })
}
// 新增【请填写功能名称】
export function addcaogao(data) {
  return request({
    url: '/business/jkkepu/addDraftKpArticle',
    method: 'post',
    data: data
  })
}
// 查询【请填写功能名称】列表
export function yipulistapi(query) {
  return request({
    url: '/business/jkkepu/getAllYpUserList',
    method: 'get',
    params: query
  })
}
// 查询【请填写功能名称】列表
export function caogaolist(query) {
  return request({
    url: '/business/jkkepu/getPersonDraftKpArticleList',
    method: 'get',
    params: query
  })
}
// 查询【请填写功能名称】列表
export function detailkepu(query) {
  return request({
    url: '/business/jkkepu/getArticleInfo',
    method: 'get',
    params: query
  })
}

export function delwenzhangapi(id) {
  return request({
    url: '/business/jkkepu/deleteArticle/' + id,
    method: 'delete'
  })
}
// 查询【请填写功能名称】列表
export function isjiaose(query) {
  return request({
    url: '/business/jkkepu/getUserRoleByUniqueId',
    method: 'get',
    params: query
  })
}
// 新增【请填写功能名称】
export function xiajiaapi(data) {
  return request({
    url: '/business/jkkepu/offlineKpArticle',
    method: 'post',
    data: data
  })
}

export function titleUniqueCheck(data) {
  return request({
    url: '/business/jkkepu/titleUniqueCheck',
    method: 'post',
    data: data
  })
}
export function bianwendang(data) {
  return request({
    url: '/business/jkkepu/transferImg',
    method: 'post',
    data: data
  })
}



